<template>
<view>
	<!-- 选择优惠弹框 -->
	<u-popup :show="show" mode="bottom" @close="close" @open="open">
	    <view class="discountsBox">
			<ul>
				<li>
					<text>可使用10公里徒步里程减100元</text>
					<u-icon name="checkbox-mark"></u-icon>
				</li>
				<li>
					<text>可使用10公里自驾里程减10元</text>
					<u-icon name="checkbox-mark"></u-icon>
				</li>
			</ul>
			<text  @click="close" class="btn">确定</text>
	    </view>
	</u-popup>
</view>
</template>

<script>
	export default{
		name:'AddDiscounts',
		props:['show'],
		methods: {
		  open() {
			// console.log('open');
		  },
		  close() {
			// this.show = false
			console.log('关闭点击');
			this.$emit("closeDiscounts",false)
		  }
		}
	}
</script>

<style scoped lang="less">
	@import 'css/discountsBox.less';
</style>